<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>测试</title>

	<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	
	<script type="text/javascript" >
		window.onload= function(){
					var app4 = new Vue({
					  el: '#app-4',
					  data: {
					    todos: [
					      { text: '学习 JavaScript' },
					      { text: '学习 Vue' },
					      { text: '整个牛项目' }
					    ]
					  }
					})
		}
	</script>
</head>
<body>
    <div id="app-4">
  <ol>
    <li v-for="todo in todos">
      {{ todo.text }}
    </li>
  </ol>
</div>
</body>
</html>